lib/sysroot: Add OSTREE_EX_STAGE_DEPLOYMENTS environment variable
authorColin Walters <walters@verbum.org>
Thu, 3 May 2018 21:29:06 +0000 (17:29 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 11 May 2018 12:39:17 +0000 (12:39 +0000)
commit6873650cae60b1c5ff57366d133b74b40803417b
treee041fc84372a4860296df96fbded07b07f0770b5
parent605d3132062e1e0b35a21578adb04a5eaae8c6d4
lib/sysroot: Add OSTREE_EX_STAGE_DEPLOYMENTS environment variable

I feel like I'm drowning in a pile of experimental-but-almost-stable
features...

Anyways, since we made the feature opt-in in rpm-ostree in
https://github.com/projectatomic/rpm-ostree/pull/1352
let's mirror that a bit here with an environment variable so people
can play with it more easily.

The tests needed some tweaks; specifically we need to reload the
status fact after making changes.  I'm still a bit uncertain
about the Ansible-as-tests.

But we add an upgrade test that uses the new environment variable.

Closes: #1583
Approved by: jlebon
src/libostree/ostree-sysroot-upgrader.c
tests/admin-test.sh
tests/installed/destructive-ansible.yml
tests/installed/destructive/staged-deploy.yml
tests/installed/tasks/install-git.yml
tests/installed/tasks/query-host.yml